package com.example.newsmanager.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.example.newsmanager.entity.Comment;
import com.example.newsmanager.entity.DTO.CommentDTO;

import java.util.List;

public interface CommentService extends IService<Comment> {
    List<Comment> getCommentByParentId(Long parentId);

    void addComment(Comment comment);

    Comment getById(Long id);

    List<Comment> getList();

    void setChildren(CommentDTO commentDTO);

    void setChildrenByNews(CommentDTO commentDTO);

    List<CommentDTO> getAllComments();

    List<CommentDTO> getAllCommentsByNewsId(Long id);

    void deleteComment(Long id);
}
